package com.ruoyi.contract.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 看房预约对象 reservation
 * 
 * @author 郝兴双
 * @date 2025-08-01
 */
public class ReservationVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 看房预约ID */
    private Long id;

    /** 房源ID */
    @Excel(name = "房源ID")
    private Long houseId;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 管家ID */
    @Excel(name = "管家ID")
    private Long butlerId;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reserveTime;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 状态（0待确认 1已确认 2已取消 3已完成） */
    @Excel(name = "状态", readConverterExp = "0=待确认,1=已确认,2=已取消,3=已完成")
    private Long status;

    /** 取消原因 */
    @Excel(name = "取消原因")
    private String cancelReason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }

    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    public void setButlerId(Long butlerId) 
    {
        this.butlerId = butlerId;
    }

    public Long getButlerId() 
    {
        return butlerId;
    }

    public void setReserveTime(Date reserveTime) 
    {
        this.reserveTime = reserveTime;
    }

    public Date getReserveTime() 
    {
        return reserveTime;
    }

    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setCancelReason(String cancelReason) 
    {
        this.cancelReason = cancelReason;
    }

    public String getCancelReason() 
    {
        return cancelReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("houseId", getHouseId())
            .append("tenantId", getTenantId())
            .append("butlerId", getButlerId())
            .append("reserveTime", getReserveTime())
            .append("contactPhone", getContactPhone())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("cancelReason", getCancelReason())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
